package net.alche.al.util.alches;

import java.lang.annotation.Annotation;
import java.util.Set;
import net.alche.al.util.alches.classtool.Scanner;

/**
 * ToolClass
 */
public class ToolClass {
  public static <A extends Annotation> Set<Class<?>> getClassList(String packageName, Class<A> annotationClass,
      boolean isDeep)
      throws Exception {
    Scanner scan = new Scanner();
    return scan.getAnnotationClasses(packageName, annotationClass, isDeep);
  }

  public static <A extends Annotation> Set<Class<?>> getClassList(String packageName, Class<A> annotationClass)
      throws Exception {
    Scanner scan = new Scanner();
    return scan.getAnnotationClasses(packageName, annotationClass, false);
  }

}